package com.nextbus.main;

import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.TextView;


public class MoreInfo1 implements OnItemSelectedListener{
    private static final String TAG = "MoreInfo1";
    /**
     * 通过测试，发现当spinner定位在ALL_Routes时，在点击All_Routes不会触发OnItemSelected
     */
    @Override
    public void onItemSelected(AdapterView<?> adapterView, View view, int position,
            long id) {
        TextView textView = (TextView)view;
        Log.d(TAG, "adapterView" + adapterView.toString());
        Log.d(TAG, "str = " + textView.getText());
        Log.d(TAG, "position = " + position);
        Log.d(TAG, "id = " + id);
        Log.d(TAG, "view id = " + view.getId());
        //String route = (String) textView.getText();
        //MoreInfo mi = new MoreInfo();
        //mi.refreshListViewSimpleAdapter(route);
    }

    @Override
    public void onNothingSelected(AdapterView<?> arg0) {
        Log.d(TAG, "nothing selected");
    }
    
}
